package com.hotel.project.usercenter.service.impl;

import com.hotel.project.usercenter.dao.CashDao;
import com.hotel.project.usercenter.domain.Cash;
import com.hotel.project.usercenter.service.CashService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author William
 * @create 2022-04-14 9:59
 */
@Service
public class CashServiceImpl implements CashService {

    @Autowired
    private CashDao cashDao;

    @Override
    public List<Cash> findByUserId(Long userId) {
        return cashDao.findByUserId(userId);
    }
}
